<%--
  Created by IntelliJ IDEA.
  User: 倪继文
  Date: 2016/8/22
  Time: 15:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <meta charset="UTF-8">
    <%--<%@ include file="/common/meta.jsp" %>--%>
    <title>雕龙数据</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="stylesheet" type="text/css" href="${ctx}/static/js/bootstrap-3.3.5/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/login.css">
    <link rel="stylesheet" href="${ctx }/static/js/plugins/layer/skin/layer.css"/>
    <!--[if lte IE 9]>
    <script type="text/javascript" src="${ctx}/static/js/bootstrap-3.3.5/respond.min.js"></script>
    <script type="text/javascript" src="${ctx}/static/js/bootstrap-3.3.5/html5shiv.min.js"></script>
    <script type="text/javascript" src="${ctx}/static/js/bootstrap-3.3.5/excanvas.compiled.js"></script>
    <![endif]-->
    <script type="text/javascript" src="${ctx}/static/js/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" src="${ctx}/static/js/common.js"></script>
    <script type="text/javascript" src="${ctx }/static/js/plugins/layer/layer.js"></script>

    <script>
        $(function () {
            if ('${username}' != '') {
                $('#rememberMe').attr('checked', 'checked');
            }
        })
        function login() {
            $.ajax({
                //cache: true,
                type: "POST",
                url: '/user/login',
                data: $('#loginForm').serialize(),
                dataType: 'json',
                //async: false,
                success: function (data) {

                    if (data.success == true) {
                        window.location.href = data.url;
                    } else {
                        layerInfo(data.msg);
                    }
                }
            });
        }





    </script>
    <style>
        input::-ms-clear{display:none;}
    </style>


</head>
<body>

<div class="container-fluid">
    <div class="bg-header"></div>
    <div class="login-wrap">
        <div class="login-header">
            <div class="login-title">医院全面医疗质量与安全监测系统</div>
        </div>
        <div class="login-main">
            <form class="login-form" method="post" id="loginForm">
                <div class="form-main">

                    <div class="form-logo">
                        <%--<img src="/static/img/dl-data-logo_03.jpg">--%>
                        <div class="login-title" style=" color: white;font-size: 22px; font-weight: 700;">雕龙数据医院演示版
                        </div>
                    </div>
                    <div style="height: 30px;">&nbsp;</div>
                    <div class="form-group form-group-1">
                        <div>用户名</div>
                        <div class="user-wrap">
                            <span class="icon-user glyphicon glyphicon-user"></span>

                            <div class="line"></div>
                            <input class="user form-control" id="userName" type="text" name="username"
                                   value="${username}" placeholder="填写您的用户名">
                        </div>
                    </div>
                    <div style="height: 10px;">&nbsp;</div>
                    <div class="form-group form-group-2">
                        <div>密码</div>
                        <div class="pwd-wrap">
                            <span class="icon-pwd glyphicon glyphicon-lock"></span>

                            <div class="line"></div>
                            <input class="pwd form-control" type="password" name="password" value="${password}"
                                   placeholder="填写您的密码">
                        </div>
                    </div>
                    <div class="form-group form-group-3">
                        <label style="font-weight:500;"><input class="checkbox" type="checkbox" id="rememberMe"
                                                               name="rememberMe">记住自己</label>
                    </div>
                    <div class="form-group form-group-4">
                        <input type="button" class="btn btn-block btn-primary" readOnly="true"
                               style="font-weight: normal; font-size: 18px;" onclick="login();" value="登 录">
                        <%--<button class="btn btn-block btn-primary" style="font-weight: normal; font-size: 18px;" onclick="login();">--%>
                        <%--登录--%>
                        <%--</button>--%>
                    </div>
                </div>
                <input type="hidden" name="client" value="${client}"/>
                <input type="hidden" name="syscode" value="${syscode}"/>
                <%--<input type="hidden" name="RememberMe" value="0" />--%>
            </form>
        </div>

        <div class="login-footer">
            <img class="dl-logo" src="/static/img/login-right_07.png">

            <p class="dl-inc">武汉雕龙医疗数据服务股份有限公司</p>
        </div>
    </div>
</div>


</body>
</html>
